<template>
  <div>
    <hr>
    <h2>子传父</h2>
    <textarea cols="30" rows="10" :value="msg"></textarea>
    <button @click="commit">确认</button>
  </div>
</template>

<script>
export default {
    props:['msg'],
    methods: {
        commit(){
            this.$emit('comfire','收到'+this.msg+"￥");
        }
    }
}
</script>

<style>

</style>